package com.zf.yichat.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "st_low_carbon_apply_certificate")
public class StLowCarbonApplyCertificate implements Serializable {
    @Id
    private Integer id;

    @Column(name = "user_id")
    private Long userId;

    /**
     * 学生姓名
     */
    @Column(name = "student_name")
    private String studentName;

    /**
     * 学生头像
     */
    @Column(name = "student_avatar")
    private String studentAvatar;

    /**
     * 学生证编号
     */
    @Column(name = "student_num")
    private String studentNum;

    /**
     *  学生证图片地址 
     */
    @Column(name = "student_card_img")
    private String studentCardImg;

    /**
     *  审核状态 0 未审核 1 已审核 
     */
    private Integer status;

    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public StLowCarbonApplyCertificate(Integer id, Long userId, String studentName, String studentAvatar, String studentNum, String studentCardImg, Integer status, Date createTime) {
        this.id = id;
        this.userId = userId;
        this.studentName = studentName;
        this.studentAvatar = studentAvatar;
        this.studentNum = studentNum;
        this.studentCardImg = studentCardImg;
        this.status = status;
        this.createTime = createTime;
    }

    public StLowCarbonApplyCertificate() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return user_id
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取学生姓名
     *
     * @return student_name - 学生姓名
     */
    public String getStudentName() {
        return studentName;
    }

    /**
     * 设置学生姓名
     *
     * @param studentName 学生姓名
     */
    public void setStudentName(String studentName) {
        this.studentName = studentName == null ? null : studentName.trim();
    }

    /**
     * 获取学生头像
     *
     * @return student_avatar - 学生头像
     */
    public String getStudentAvatar() {
        return studentAvatar;
    }

    /**
     * 设置学生头像
     *
     * @param studentAvatar 学生头像
     */
    public void setStudentAvatar(String studentAvatar) {
        this.studentAvatar = studentAvatar == null ? null : studentAvatar.trim();
    }

    /**
     * 获取学生证编号
     *
     * @return student_num - 学生证编号
     */
    public String getStudentNum() {
        return studentNum;
    }

    /**
     * 设置学生证编号
     *
     * @param studentNum 学生证编号
     */
    public void setStudentNum(String studentNum) {
        this.studentNum = studentNum == null ? null : studentNum.trim();
    }

    /**
     * 获取 学生证图片地址 
     *
     * @return student_card_img -  学生证图片地址 
     */
    public String getStudentCardImg() {
        return studentCardImg;
    }

    /**
     * 设置 学生证图片地址 
     *
     * @param studentCardImg  学生证图片地址 
     */
    public void setStudentCardImg(String studentCardImg) {
        this.studentCardImg = studentCardImg == null ? null : studentCardImg.trim();
    }

    /**
     * 获取 审核状态 0 未审核 1 已审核 
     *
     * @return status -  审核状态 0 未审核 1 已审核 
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置 审核状态 0 未审核 1 已审核 
     *
     * @param status  审核状态 0 未审核 1 已审核 
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}